<div class="row" style="padding: 10px;">
	<div class="col-md-6 col-sm-6 col-xs-12">
		<div class="panel panel-info">
			<div class="panel-heading">
				<h3 class="panel-title">工程信息</h3>
			</div>
			<div class="panel-body">
				<div class="row">
					<div class="col-md-6 col-sm-12 col-xs-12">
						<div class="form-data">
							编号：
							<span class="show-data editable">
								<span class="data">${data.no}</span>
							</span>
							<span class="edit-data hide">
								<form action="${request.contextPath}/project/form/edit-field" method="post">
									<input type="hidden" name="id" value="${data.id}">
									<input type="hidden" name="field" value="no">
									<input class="data" type="text" name="data" value="${data.no}">
									<i class="icon-ok icon-large" title="确定"></i>
									<i class="icon-remove icon-large" title="取消"></i>
								</form>
							</span>
						</div>
						<br>
						<div class="form-data">
							类型：
							<span class="show-data editable">
								<span class="data">${data.type}</span>
							</span>
							<#if type??>
							<span class="edit-data hide">
								<form action="${request.contextPath}/project/form/edit-field" method="post">
									<input type="hidden" name="id" value="${data.id}">
									<input type="hidden" name="field" value="type">
									<select class="data" name="data">
										<#list type as t>
										<option value="${t}" ${(data.type==t)?string('selected','')}>${t}</option>
										</#list>
									</select>
									<i class="icon-ok icon-large" title="确定"></i>
									<i class="icon-remove icon-large" title="取消"></i>
								</form>
							</span>
							</#if>
						</div>
						<br>
						<div class="form-data">
							项目获起方式：
							<span class="show-data editable">
								<span class="data">${(data.obtainType)!'-'}</span>
							</span>
							<#if obtain??>
							<span class="edit-data hide">
								<form action="${request.contextPath}/project/form/edit-field" method="post">
									<input type="hidden" name="id" value="${data.id}">
									<input type="hidden" name="field" value="obtainType">
									<select class="data" name="data">
										<#list obtain as o>
										<option value="${o}" ${(data.obtainType==o)?string('selected','')}>${o}</option>
										</#list>
									</select>
									<i class="icon-ok icon-large" title="确定"></i>
									<i class="icon-remove icon-large" title="取消"></i>
								</form>
							</span>
							</#if>
						</div>
						<hr class="info-split">
						<div class="form-data">
							工期：
							<span class="show-data editable" data-empty-str="未知">
								<span class="data">${(data.start?string('yyyy.MM.dd'))!'未知'}</span>
							</span>
							<span class="edit-data hide">
								<form action="${request.contextPath}/project/form/edit-field" method="post">
									<input type="hidden" name="id" value="${data.id}">
									<input type="hidden" name="format" value="yyyy.MM.dd">
									<input type="hidden" name="field" value="start">
									<input class="data datetimepicker" data-foot="false" data-format="yyyy.MM.dd" data-time="${(data.start)!.now}" type="text" name="data" value="${(data.start?string('yyyy.MM.dd'))!.now?string('yyyy.MM.dd')}" readonly>
									<i class="icon-ok icon-large" title="确定"></i>
									<i class="icon-remove icon-large" title="取消"></i>
								</form>
							</span>
						</div>
						-
						<div class="form-data">
							<span class="show-data editable" data-empty-str="未知">
								<span class="data">${(data.end?string('yyyy.MM.dd'))!'未知'}</span>
							</span>
							<span class="edit-data hide">
								<form action="${request.contextPath}/project/form/edit-field" method="post">
									<input type="hidden" name="id" value="${data.id}">
									<input type="hidden" name="format" value="yyyy.MM.dd">
									<input type="hidden" name="field" value="end">
									<input class="data datetimepicker" data-foot="false" data-format="yyyy.MM.dd" data-time="${(data.end)!.now}" type="text" name="data" value="${(data.end?string('yyyy.MM.dd'))!.now?string('yyyy.MM.dd')}" readonly>
									<i class="icon-ok icon-large" title="确定"></i>
									<i class="icon-remove icon-large" title="取消"></i>
								</form>
							</span>
						</div>
						<br>
						<div class="form-data">
							工程实施情况：
							<span class="show-data editable">
								<span class="data">${(data.status.val)!'-'}</span>
							</span>
							<#if status??>
							<span class="edit-data hide">
								<form action="${request.contextPath}/project/form/edit-field" method="post">
									<input type="hidden" name="id" value="${data.id}">
									<input type="hidden" name="field" value="status">
									<select class="data" name="data">
										<#list status as s>
										<option value="${s.name()}" ${(data.status==s)?string('selected','')}>${s.val}</option>
										</#list>
									</select>
									<i class="icon-ok icon-large" title="确定"></i>
									<i class="icon-remove icon-large" title="取消"></i>
								</form>
							</span>
							</#if>
						</div>
						<hr class="info-split">
						<div class="form-data">
							发票开具情况：
							<span class="show-data editable">
								<span class="data">${data.invoiced?string('已开', '未开')}</span>
							</span>
							<span class="edit-data hide">
								<form action="${request.contextPath}/project/form/edit-field" method="post">
									<input type="hidden" name="id" value="${data.id}">
									<input type="hidden" name="field" value="invoiced">
									<select class="data" name="data">
										<option value="false"${data.invoiced?string('', 'selected')}>未开</option>
										<option value="true"${data.invoiced?string('selected', '')}>已开</option>
									</select>
									<i class="icon-ok icon-large" title="确定"></i>
									<i class="icon-remove icon-large" title="取消"></i>
								</form>
							</span>
						</div>
						<br>
						<div class="form-data">
							发票开具时间：
							<span class="show-data editable" data-empty-str="未知">
								<span class="data">${(data.invoiceDate?string('yyyy.MM.dd'))!'未知'}</span>
							</span>
							<span class="edit-data hide">
								<form action="${request.contextPath}/project/form/edit-field" method="post">
									<input type="hidden" name="id" value="${data.id}">
									<input type="hidden" name="format" value="yyyy.MM.dd">
									<input type="hidden" name="field" value="invoiceDate">
									<input class="data datetimepicker" data-foot="false" data-format="yyyy.MM.dd" data-time="${(data.invoiceDate)!.now}" type="text" name="data" value="${(data.invoiceDate?string('yyyy.MM.dd'))!.now?string('yyyy.MM.dd')}" readonly>
									<i class="icon-ok icon-large" title="确定"></i>
									<i class="icon-remove icon-large" title="取消"></i>
								</form>
							</span>
						</div>
						<br>
						<div class="form-data">
							发票开具情况说明：
							<span class="show-data editable">
								<span class="data">${data.invoiceDesc!'-'}</span>
							</span>
							<span class="edit-data hide">
								<form action="${request.contextPath}/project/form/edit-field" method="post">
									<input type="hidden" name="id" value="${data.id}">
									<input type="hidden" name="field" value="invoiceDesc">
									<textarea class="data" name="data" rows="5" style="width: 100%;">${data.invoiceDesc}</textarea>
									<i class="icon-ok icon-large" title="确定"></i>
									<i class="icon-remove icon-large" title="取消"></i>
								</form>
							</span>
						</div>
					</div>
					<div class="col-md-6 col-sm-12 col-xs-12">
						<div class="form-data">
							项目经理：
							<span class="show-data editable">
								<span class="data">${(data.manager.name)!'-'}</span>
							</span>
							<#if type??>
							<span class="edit-data hide">
								<form action="${request.contextPath}/project/form/edit-manager" method="post">
									<input type="hidden" name="id" value="${(data.id)!'-'}">
									<select class="data" name="data">
										<#list manager as m>
										<option value="${m.id}" ${(data.manager.id==m.id)?string('selected','')}>${m.name}</option>
										</#list>
									</select>
									<i class="icon-ok icon-large" title="确定"></i>
									<i class="icon-remove icon-large" title="取消"></i>
								</form>
							</span>
							</#if>
						</div>
						<br>
						<div class="form-data">
							项目管理部门：
							<span class="show-data editable">
								<span class="data">${(data.manageDep.name)!'-'}</span>
							</span>
							<span class="edit-data hide">
								<form action="${request.contextPath}/project/form/edit-field" method="post">
									<input type="hidden" name="id" value="${data.id}">
									<input type="hidden" name="field" value="manageDep.id">
									<select class="data" name="data">
										<#list unit as u>
										<option value="${u.id}" ${(data.manageDep.id==u.id)?string('selected','')}>${u.name}</option>
										</#list>
									</select>
									<i class="icon-ok icon-large" title="确定"></i>
									<i class="icon-remove icon-large" title="取消"></i>
								</form>
							</span>
						</div>
						<hr class="info-split">
						<div class="form-data">
							项目成员：
							<span class="show-data editable">
								<#if data.membersWithoutManager??> <#list data.membersWithoutManager as m>
								<div class="member">
									<input type="hidden" class="member-id" value="${m.id}">
									<span class="data">${m.name}</span>
								</div>
								</#list> <#else>
								<br>
								&lt;暂无&gt;</#if>
							</span>
							<span class="edit-data hide">
								<i class="icon-ok icon-large edit-proj-member" title="确定" data-proj-id="${data.id}"></i>
								<i class="icon-remove icon-large cancel-edit-proj-member" title="取消"></i>
								<div class="project-member-tree"></div>
							</span>
						</div>
						<hr class="info-split">
						<div class="form-data">
							签约单位：
							<span class="show-data editable">
								<span class="data">${data.customerCompany!'-'}</span>
							</span>
							<span class="edit-data hide">
								<form action="${request.contextPath}/project/form/edit-field" method="post">
									<input type="hidden" name="id" value="${data.id}">
									<input type="hidden" name="field" value="customerCompany">
									<select class="data" name="data">
										<#list customerCompany as cc>
										<option value="${cc}" ${(data.customerCompany==cc)?string('selected','')}>${cc}</option>
										</#list>
									</select>
									<i class="icon-ok icon-large" title="确定"></i>
									<i class="icon-remove icon-large" title="取消"></i>
								</form>
							</span>
						</div>
						<br>
						<div class="form-data">
							部门：
							<span class="show-data editable">
								<span class="data">${data.customerUnit!'-'}</span>
							</span>
							<span class="edit-data hide">
								<form action="${request.contextPath}/project/form/edit-field" method="post">
									<input type="hidden" name="id" value="${data.id}">
									<input type="hidden" name="field" value="customerUnit">
									<input class="data" type="text" name="data" value="${(data.customerUnit)!''}">
									<i class="icon-ok icon-large" title="确定"></i>
									<i class="icon-remove icon-large" title="取消"></i>
								</form>
							</span>
						</div>
						<br>
						<div class="form-data">
							联系人：
							<span class="show-data editable">
								<span class="data">${data.customerPeople!'-'}</span>
							</span>
							<span class="edit-data hide">
								<form action="${request.contextPath}/project/form/edit-field" method="post">
									<input type="hidden" name="id" value="${data.id}">
									<input type="hidden" name="field" value="customerPeople">
									<input class="data" type="text" name="data" value="${data.customerPeople}">
									<i class="icon-ok icon-large" title="确定"></i>
									<i class="icon-remove icon-large" title="取消"></i>
								</form>
							</span>
						</div>
						<br>
						<div class="form-data">
							联系电话：
							<span class="show-data editable">
								<span class="data"> ${data.customerPhone!'-'}</span>
							</span>
							<span class="edit-data hide">
								<form action="${request.contextPath}/project/form/edit-field" method="post">
									<input type="hidden" name="id" value="${data.id}">
									<input type="hidden" name="field" value="customerPhone">
									<input class="data" type="text" name="data" value="${data.customerPhone}">
									<i class="icon-ok icon-large" title="确定"></i>
									<i class="icon-remove icon-large" title="取消"></i>
								</form>
							</span>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<div class="col-md-6 col-sm-6 col-xs-12">
		<div class="panel panel-success">
			<div class="panel-heading">
				<h3 class="panel-title">合同信息</h3>
			</div>
			<div class="panel-body">
				<div class="row">
					<div class="col-md-6 col-sm-12 col-xs-12">
						<div class="form-data">
							合同签订（招投标）情况：
							<span class="show-data editable" data-event="project.contracted">
								<span class="data">${data.contracted?string('已签订', '未签订')}</span>
							</span>
							<span class="edit-data hide">
								<form action="${request.contextPath}/project/form/edit-field" method="post">
									<input type="hidden" name="id" value="${data.id}">
									<input type="hidden" name="field" value="contracted">
									<select class="data" name="data">
										<option value="false"${data.contracted?string('', 'selected')}>未签订</option>
										<option value="true"${data.contracted?string('selected', '')}>已签订</option>
									</select>
									<i class="icon-ok icon-large" title="确定"></i>
									<i class="icon-remove icon-large" title="取消"></i>
								</form>
							</span>
						</div>
						<br>
						<div class="form-data">
							签订（招投标）情况说明：
							<span class="show-data editable">
								<span class="data">${data.contractDesc!'-'}</span>
							</span>
							<span class="edit-data hide">
								<form action="${request.contextPath}/project/form/edit-field" method="post">
									<input type="hidden" name="id" value="${data.id}">
									<input type="hidden" name="field" value="contractDesc">
									<textarea class="data" name="data" rows="5" style="width: 100%;">${data.contractDesc}</textarea>
									<i class="icon-ok icon-large" title="确定"></i>
									<i class="icon-remove icon-large" title="取消"></i>
								</form>
							</span>
						</div>
						<div class="contract-info ${data.contracted?string('', 'hide')}">
							<hr class="info-split">
							<#assign mc = data.mainContract>
							<input type="hidden" class="contract-id" value="${mc.id}">
							<div class="form-data">
								合同编号：
								<span class="show-data editable">
									<span class="data">${mc.no}</span>
								</span>
								<span class="edit-data hide">
									<form action="${request.contextPath}/contract/form/edit-field" method="post">
										<input type="hidden" name="id" value="${mc.id}">
										<input type="hidden" name="field" value="no">
										<input class="data" type="text" name="data" value="${mc.no}">
										<i class="icon-ok icon-large" title="确定"></i>
										<i class="icon-remove icon-large" title="取消"></i>
									</form>
								</span>
							</div>
							<br>
							<div class="form-data">
								签订日期：
								<span class="show-data editable">
									<span class="data">${(mc.signDate?string('yyyy.MM.dd'))!'-'}</span>
								</span>
								<span class="edit-data hide">
									<form action="${request.contextPath}/contract/form/edit-field" method="post">
										<input type="hidden" name="id" value="${mc.id}">
										<input type="hidden" name="format" value="yyyy.MM.dd">
										<input type="hidden" name="field" value="signDate">
										<input class="data datetimepicker" data-foot="false" data-format="yyyy.MM.dd" data-time="${(mc.signDate)!.now}" type="text" name="data" value="${(mc.signDate?string('yyyy.MM.dd'))!.now?string('yyyy.MM.dd')}" readonly>
										<i class="icon-ok icon-large" title="确定"></i>
										<i class="icon-remove icon-large" title="取消"></i>
									</form>
								</span>
							</div>
							<br>
							<div class="form-data">
								合同金额：
								<span class="show-data editable">
									<span class="data">${(mc.price?string('currency'))!'-'}</span>
								</span>
								<span class="edit-data hide">
									<form action="${request.contextPath}/contract/form/edit-field" method="post">
										<input type="hidden" name="id" value="${mc.id}">
										<input type="hidden" name="field" value="price">
										<input class="data" type="text" name="data" value="${mc.price}">
										<i class="icon-ok icon-large" title="确定"></i>
										<i class="icon-remove icon-large" title="取消"></i>
									</form>
								</span>
							</div>
							<br>
							<div class="form-data">
								结算金额：
								<span class="show-data editable">
									<span class="data">${(mc.payPrice?string('currency'))!'-'}</span>
								</span>
								<span class="edit-data hide">
									<form action="${request.contextPath}/contract/form/edit-field" method="post">
										<input type="hidden" name="id" value="${mc.id}">
										<input type="hidden" name="field" value="payPrice">
										<input class="data" type="text" name="data" value="${mc.payPrice}">
										<i class="icon-ok icon-large" title="确定"></i>
										<i class="icon-remove icon-large" title="取消"></i>
									</form>
								</span>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
